import { Injectable } from '@angular/core';
import { HttpClientService } from '../../../../services/http-client.service';

@Injectable()
export class ExtractAccountService {

	constructor(
		public httpClient: HttpClientService
	) { }
	//保存条目
	save(postBody, nFundNo) {
		return this.httpClient.post('/pms/v1/item/accountItem?nFundNo=' + nFundNo, postBody);
	}
	//查询-单个核算条目条目内容（根据FundNo）
	getSingleInfo(nFundNo) {
		return this.httpClient.get('/pms/v1/item/accountItem/getInfoByFundNo?nFundNo=' + nFundNo);
	}
	//更新-核算条目-单个
	edit(putBody){
		return this.httpClient.put('/pms/v1/item/accountItem/updateAccountItem' , putBody);
	}
	
}